package com.hust360.percent.pojo;

import java.io.Serializable;
import java.util.List;


/**
 * 图片和打折信息关系表的映射类
 * @author yangyang
 *
 */
public class Image implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -2313407977418437193L;

	public static final String TABLE = "image";
	
	/**
	 * 图片表中的id
	 */
	public Long id;
	public static final String ID = "id";
	
	/**
	 * 打折信息的id
	 */
	public Long dscid;
	public static final String DSCID = "dscid";
	
	
	/**
	 * 图片的名字 
	 */
	public String filename;
	public static final String FILENAME = "filename";
	
	/**
	 * 图片的url地址
	 */
	public String url;
	public static final String URL = "url";
	
	public static interface ImageDAO {
		public List<Image> findByDscId(Long sid);
		public void save(Image image);
	}
}
